package cn.tedu.onlinestore.product.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Product {
    @ApiModelProperty(value = "产品id")
    private Long id;
    @ApiModelProperty(value = "商家id")
    private Long sellerId;
    @ApiModelProperty(value = "商品名称")
    private String name;
    @ApiModelProperty(value = "商品描述")
    private String description;
    @ApiModelProperty(value = "商品价格")
    private String price;
    @ApiModelProperty(value = "商品库存数量")
    private Integer number;
    @ApiModelProperty(value = "商品分类")
    private String category;
    @ApiModelProperty(value = "商品的状态")
    private String status;
    @ApiModelProperty(value = "商品图片")
    private String imageUrl;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
